﻿using System;
using System.ComponentModel.DataAnnotations;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Runtime.Validation;
using Abp.Extensions;
using KDS.Mes.Mes.SeatInfos.Dtos;
using KDS.Mes.Mes.SeatInfos;

namespace KDS.Mes.Web.Models.SeatInfos
{
    /// <summary>
    /// 新建或编辑座椅配置信息时使用的Viewmodel
    /// </summary>
    [AutoMap(typeof(GetSeatInfoForEditOutput ))]
    public class CreateOrEditSeatInfoModalViewModel : GetSeatInfoForEditOutput
    {
		/// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="output"></param>
	   public CreateOrEditSeatInfoModalViewModel(GetSeatInfoForEditOutput output)
        {
            output.MapTo(this);
        }

        //public IsHave IsHave { get; set; }

        //public SlideType Slide { get; set; }

        /// <summary>
        /// 是否处于编辑状态
        /// </summary>
        public bool IsEditMode { get { return SeatInfo.Id.HasValue; } }

	    
		
        /// <summary>
        /// 模糊查询字段
        /// </summary>
        public string FilterText { get; set; }

    }
}
